package GUI;

import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.DefaultComboBoxModel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class EditRequestStageManager_GUI extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JComboBox reqNum;
	private JComboBox stagename;
	private JButton btnExtension;
	private JButton btnUpdate;
	private JButton btnCancel;
	private JButton btnDuration;

	
	public EditRequestStageManager_GUI(){
		setLayout(null);
		
		JLabel lblDetermineStageDuration = DefaultComponentFactory.getInstance().createTitle("Edit request stage manager");
		lblDetermineStageDuration.setIcon(new ImageIcon(DetermineStageDuration_GUI.class.getResource("/Picture/Actions-document-edit-icon.png")));
		lblDetermineStageDuration.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblDetermineStageDuration.setBounds(16, 11, 369, 128);
		add(lblDetermineStageDuration);
		
		JLabel lblReqNum = DefaultComponentFactory.getInstance().createLabel("Choose request number:");
		lblReqNum.setFont(new Font("Arial", Font.BOLD, 12));
		lblReqNum.setBounds(21, 189, 174, 10);
		add(lblReqNum);
		
		reqNum = new JComboBox();
		reqNum.setBounds(205, 182, 180, 27);
		add(reqNum);
		
		JLabel lblStageNum = DefaultComponentFactory.getInstance().createLabel("Choose stage name:");
		lblStageNum.setFont(new Font("Arial", Font.BOLD, 12));
		lblStageNum.setBounds(21, 243, 174, 10);
		add(lblStageNum);
		
		btnExtension = new JButton("Extension request");
		btnExtension.setBounds(221, 349, 164, 44);
		add(btnExtension);
		
		btnUpdate = new JButton("Update request");
		btnUpdate.setBounds(221, 292, 164, 44);
		add(btnUpdate);
		
		stagename = new JComboBox();
		stagename.setModel(new DefaultComboBoxModel(new String[] {"", "estimation", "examination", "performance", "testing"}));
		stagename.setBounds(205, 236, 180, 27);
		add(stagename);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(DetermineStageManger_GUI.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(10, 461, 135, 47);
		add(btnCancel);
		
		btnDuration = new JButton("determine duration");
		btnDuration.setBounds(221, 404, 164, 44);
		add(btnDuration);
	}


	public JComboBox getReqNum() {
		return reqNum;
	}


	public void setReqNum(JComboBox reqNum) {
		this.reqNum = reqNum;
	}


	public JComboBox getStagename() {
		return stagename;
	}


	public void setStagename(JComboBox stagename) {
		this.stagename = stagename;
	}


	public JButton getBtnExtension() {
		return btnExtension;
	}


	public void setBtnExtension(JButton btnExtension) {
		this.btnExtension = btnExtension;
	}


	public JButton getBtnUpdate() {
		return btnUpdate;
	}


	public void setBtnUpdate(JButton btnUpdate) {
		this.btnUpdate = btnUpdate;
	}


	public JButton getBtnCancel() {
		return btnCancel;
	}


	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}


	public JButton getBtnDuration() {
		return btnDuration;
	}


	public void setBtnDuration(JButton btnDuration) {
		this.btnDuration = btnDuration;
	}
	
}
